package com.hz.ruoyifarmbase.farm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hz.ruoyifarmbase.farm.domain.AgrBaseBatch;
import com.hz.ruoyifarmbase.farm.domain.vo.AgrBatchBreedVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 侯文波
 * @date 2025/3/7 9:52
 * @description:
 */
@Repository
public interface AgrBaseBatchMapper extends BaseMapper<AgrBaseBatch> {
    /**
     * 查询批次信息
     * @param agrBatchBreedVo
     * @return
     */
    public List<AgrBatchBreedVo> selectAgrBatchBreedList(AgrBatchBreedVo agrBatchBreedVo);

    @Select("SELECT batch_id, batch_name FROM agr_base_batch WHERE status = #{status}")
    List<Map<String, Object>> selectByStatus(int status);

}
